﻿using Microsoft.Extensions.DependencyInjection;
using System;

namespace KyDependencyPlugin
{
    public class AOPServiceProxviderFactory : IServiceProviderFactory<IServiceCollection>
    {
        public IServiceCollection CreateBuilder(IServiceCollection services)
        {
            return services;
        }

        public IServiceProvider CreateServiceProvider(IServiceCollection containerBuilder)
        {
            ServiceProvider serviceProvider = containerBuilder.BuildServiceProvider();
            serviceProvider.UserPorvider();
            return serviceProvider;
        }
    }
}
